{{ content() }}
<div id="main1">
    <div class="upload_wrapper">
        <div class="top_title">
            Upload Tài Liệu
        </div>
        <div class="upload_content">
            <div class="upload_left">
                <div class="demo">     
                    <p class="" style="padding-left: 20px">File cho phep upload : <span>file anh , doc, docx, ppt, pptx va pdf</span></p>
                    <!-- do not need enctype="multipart/form-data" -->
                    {{form('id':'upload','class':'form_upload','enctype':'multipart/form-data','method':'post')}}
                    {{form.messages('upload_info')}}

                    <br>
                    <table class="upload_table">
                        <tbody>
                            <tr>
                                <td>Loại tài liệu:</td>
                                <td>
                                    {{form.render('doctype')}}
                                    <span class="upload_type_info">{{form.messages('doctype')}}</span>
                                </td>
                            </tr>
                            <tr>
                                <td>Chủ đề:</td>
                                <td id="showmacon">
                                    {{form.render('topic')}}
                                    <span class="upload_topic_info">{{form.messages('topic')}}</span>
                                </td>
                            <tr>
                                <td>Tên Tài Liệu:</td>
                                <td>{{form.render('title')}}{{form.messages('title')}}</td>
                            </tr>
                            <tr>
                                <td>Ảnh minh họa:</td>
                                <td>
                                    {{form.render('image')}}
                                    <span class="upload_file_info">
                                        {{form.messages('image')}}                                       
                                    </span>
                                </td>
                            </tr> 
                            <tr>
                                <td>Tài liệu:</td>
                                <td>
                                    {{form.render('file')}}
                                    <span class="upload_file_info">
                                        {{form.messages('file')}}                                       
                                    </span>
                                </td>
                            </tr>
                            <tr style="display: none">
                                <td>Giá tiền:</td>
                                <td class="cost">{{form.render('cost')}}{{form.messages('cost')}}</td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle">Mô tả:</td>
                                <td>{{form.render('description')}}</td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <button id="submitbutton" class="upload_button"><img src="{{url('public/img/upload_button.png')}}"></button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    {{form.render('csrf',['value':security.getToken()])}}
                    <!-- {{form.messages('csrf')}} -->
                    {{ endform() }}	
                </div>
            </div>
            <div class="upload_right right">
                <div class="boxp02">
                    <div class="top">Hướng dẫn Upload</div>
                    <div class="mid">{{upload_guides}}</div>
                </div>
                <div class="boxp02">
                    <div class="top">Quy Định Upload</div>
                    <div class="mid">{{upload_rules}}</div>
                </div>
            </div>
        </div>
    </div>
</div>
{{javascript_include('js/upload.js')}}